package com.zzyl.nursing.controller;

import com.zzyl.common.core.domain.R;
import com.zzyl.nursing.service.INursingProjectService;
import com.zzyl.nursing.vo.NursingProjectVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ljc
 * @version V1.0
 * @date 2025-03-14 11:57
 */
@RestController
@RequestMapping("/serve")
public class ServeController {

    @Autowired
    private INursingProjectService nursingProjectService;;

    /**
     *  获取所有护理项目
     * @return
     */
    @GetMapping("/project/all")
    public R<List<NursingProjectVo>> getAllProjects() {
        return R.ok(nursingProjectService.getAllProjects());
    }
}
